<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon" /> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>左侧导航栏</title>
<link href="${pageContext.request.contextPath}/css/css.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath}/css/style2.css" rel="stylesheet" type="text/css" />
</head>
<script language="JavaScript">
function tupian(idt){
    var nametu="xiaotu"+idt;
    var tp = document.getElementById(nametu);
    tp.src="${pageContext.request.contextPath}/images/ico05.gif";//图片ico04为白色的正方形
	
	for(var i=1;i<30;i++)
	{
	  
	  var nametu2="xiaotu"+i;
	  if(i!=idt*1)
	  {
	    var tp2=document.getElementById('xiaotu'+i);
		if(tp2!=undefined)
	    {tp2.src="${pageContext.request.contextPath}/images/ico06.gif";}//图片ico06为蓝色的正方形
	  }
	}
}

function list(idstr){
	var name1="subtree"+idstr;
	var name2="img"+idstr;
	var objectobj=document.all(name1);
	var imgobj=document.all(name2);
	
	
	if(objectobj.style.display=="none"){
		for(i=1;i<10;i++){
			var name3="img"+i;
			var name="subtree"+i;
			var o=document.all(name);
			if(o!=undefined){
				o.style.display="none";
				var image=document.all(name3);
				//alert(image);
				image.src="${pageContext.request.contextPath}/images/ico04.gif";
			}
		}
		objectobj.style.display="";
		imgobj.src="${pageContext.request.contextPath}/images/ico03.gif";
	}
	else{
		objectobj.style.display="none";
		imgobj.src="${pageContext.request.contextPath}/images/ico04.gif";
	}
}

</script>

<body>
<table  width="198" border="0" cellpadding="0" cellspacing="0" class="left-table01">
  <tr>
    <TD>
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
		  <tr>
			<td width="207" height="55" background="${pageContext.request.contextPath}/images/nav01.gif">
				<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
				  <tr>
					<td width="25%" rowspan="2"><img src="${pageContext.request.contextPath}/images/4.jpg" width="35" height="35" /></td>
					<td width="75%" height="22" class="left-font01">您好:
					<span class="left-font02">${loginName}</span></td>
				  </tr>
				  <tr>
					<td height="22" class="left-font01">
						[&nbsp;<a href="${pageContext.request.contextPath}/admin/toLogin" target="_top" 
						class="left-font01" onclick="return sub1()">退出</a>&nbsp;]</td>
				  </tr>
				</table>
			</td>
		  </tr>
		</table>
		


		<!--  审核系统开始    -->
		<TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29">
				<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td width="8%"><img name="img7" id="img7" src="${pageContext.request.contextPath}/images/ico04.gif" width="8" height="11" /></td>
						<td width="92%">
								<a href="javascript:" target="mainFrame" class="left-font03" onClick="list('7');" >消息管理</a></td>
					</tr>
				</table>
			</td>
          </tr>		  
        </TABLE>
		<table id="subtree7" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" 
				cellspacing="0" class="left-table02">
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu17" src="${pageContext.request.contextPath}/images/ico06.gif" width="8" height="12" /></td>
				  <td width="91%">
						<a href="${pageContext.request.contextPath}/admin/list" target="mainFrame" class="left-font03" onClick="tupian('17');">信息审核</a></td>
				</tr>

      </table>
		<!--  审核系统结束    -->


     <!-- 管理系统开始-->
        <TABLE width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29">
				<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
					<tr>
						<td width="8%"><img name="img1" id="img1" src="${pageContext.request.contextPath}/images/ico04.gif" width="8" height="11" /></td>
						<td width="92%">
								<a href="javascript:" target="mainFrame" class="left-font03" onClick="list('1');" >后台中心</a></td>
					</tr>
				</table>
			</td>
          </tr>		  
        </TABLE>
		<table id="subtree1" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" 
				cellspacing="0" class="left-table02">
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu1" src="${pageContext.request.contextPath}/images/ico06.gif" width="8" height="12" /></td>
				  <td width="91%"><a href="${pageContext.request.contextPath}/admin/showUser" target="mainFrame" class="left-font03" onClick="tupian('1');">用户信息管理</a></td>
				</tr>
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu4" src="${pageContext.request.contextPath}/images/ico06.gif" width="8" height="12" /></td>
				  <td width="91%"><a href="${pageContext.request.contextPath}/admin/showSale" target="mainFrame" class="left-font03" onClick="tupian('4');">商户信息管理</a></td>
				</tr>
				<tr>
				  <td width="9%" height="20" ><img id="xiaotu2" src="${pageContext.request.contextPath}/images/ico06.gif" width="8" height="12" /></td>
				  <td width="91%"><a href="${pageContext.request.contextPath}/admin/showOrder" target="mainFrame" class="left-font03" onClick="tupian('2');">订单信息管理</a></td>
				</tr>	
      </table>
		<!--  管理系统结束    -->

	  <!--  日志管理系统    -->
	  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="8%" height="12"><img name="img2" id="img2" src="${pageContext.request.contextPath}/images/ico04.gif" width="8" height="11" /></td>
                  <td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('2');" >日志系统</a></td>
                </tr>
            </table></td>
          </tr>
      </table>
	  
	  <table id="subtree2" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
        
		<tr>
          <td width="9%" height="20" ><img id="xiaotu7" src="${pageContext.request.contextPath}/images/ico06.gif" width="8" height="12" /></td>
          <td width="91%"><a href="${pageContext.request.contextPath}/log/queryLogByCon" target="mainFrame" class="left-font03" onClick="tupian('7');">日志信息管理</a></td>
        </tr>
      </table>

	  <!--  日志管理系统结束   -->

	  <!--  个人中心系统开始   -->
	<%--   <table width="100%" border="0" cellpadding="0" cellspacing="0" class="left-table03">
          <tr>
            <td height="29"><table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="8%" height="12"><img name="img3" id="img3" src="${pageContext.request.contextPath}/images/ico04.gif" width="8" height="11" /></td>
                  <td width="92%"><a href="javascript:" target="mainFrame" class="left-font03" onClick="list('3');" >个人中心</a></td>
                </tr>
            </table></td>
          </tr>
      </table>
	  
	  <table id="subtree3" style="DISPLAY: none" width="80%" border="0" align="center" cellpadding="0" cellspacing="0" class="left-table02">
        <tr>
          <td width="9%" height="20" ><img id="xiaotu8" src="${pageContext.request.contextPath}/images/ico06.gif" width="8" height="12" /></td>
          <td width="91%"><a href="#" target="mainFrame" class="left-font03" onClick="tupian('8');">个人账户</a></td>
        </tr>
		<tr>
          <td width="9%" height="20" ><img id="xiaotu9" src="${pageContext.request.contextPath}/images/ico06.gif" width="8" height="12" /></td>
          <td width="91%"><a href="#" target="mainFrame" class="left-font03" onClick="tupian('9');">个人信息管理</a></td>
        </tr>
		
      </table> --%>
	
	  <!--  个人中心结束    -->

	  </TD>
  </tr>
  
</table>
</body>
<script type="text/javascript">
function sub1() {
	var msg = "${loginName},您确定要退出吗？";
	if (confirm(msg) == true) {
	} else {
		return false;
	}
}



</script>
</html>
